<extend name="Public:common"/>
<block name="css">
    <style>
        th,td{text-align:center;}
    </style>
</block>
<block name="content">
    <div class="page-header" style="background-color: #fff!important"><h1><i class="fa fa-home"></i> 首页 &gt;产品管理&gt;线路发布</h1></div>

    <ul id="nav" class="nav nav-tabs">
        <li role="presentation" class=""><a href="javascript:void(0)">第一步基本信息</a></li>
        <li role="presentation" class=""><a href="javascript:void(0)">第二步价格计划</a></li>
        <li role="presentation" class=""><a href="javascript:void(0)">第三步行程安排</a></li>
        <li role="presentation" class=""><a href="javascript:void(0)">第四步签证添加</a></li>
        <li role="presentation" class="active"><a href="javascript:void(0)">第五步附加产品</a></li>
        <li role="presentation" ><a href="javascript:void(0)">第六步销售渠道</a></li>
    </ul>

    <div class="tab-content">
        <!-- 附加产品 第五步-->
        <div class="paneld">
            <form action="{:U('step5_action')}" method="post">
                <input type="hidden" name="id" value="{:I('id')}">
                <div class="row">
                    <div class="btn btn-primary" onclick="addAppendTr()">添加附加产品</div>
                </div>
                <div class="row">
                    <div class="form-group">
                        <table class="table table-striped table-bordered table-hover table-condensed" id="addAppendTr">
                            <tr >
                                <th>名称</th>
                                <th>价格({$operatorInfo['currency']})</th>
                                <th>排序</th>
                               <!-- <th>状态</th>-->
                                <th class="operator">操作</th>
                            </tr>
                            <volist name="list" id="svo">
                                <tr >
                                    <td>
                                        <input type="hidden" value="{$svo.origin_money_type}" name="append[{$i}][origin_money_type]">
                                        <input type="hidden" value="{$svo.origin_line_id}" name="append[{$i}][origin_line_id]">
                                        <input type="hidden" value="{$svo.supplier_id}" name="append[{$i}][supplier_id]">
                                        <input type="hidden" value="{$svo.origin_product_name}" name="append[{$i}][origin_product_name]">
                                        <input type="text" value="{$svo.product_name}" name="append[{$i}][product_name]">
                                    </td>
                                    <td>
                                        <if condition="$svo['origin_product_price']">
                                             <span class="text-warning">成本价:{$svo.origin_product_price}</span>&nbsp;&nbsp;
                                        </if>
                                        <span for="" class="text-primary">销售价:</span><input type="hidden" value="{$svo.origin_product_price}" name="append[{$i}][origin_product_price]">
                                        <input type="text" value="{$svo.product_price}" name="append[{$i}][product_price]">
                                    </td>
                                    <td><input type="text" value="{$svo.product_sort}" name="append[{$i}][product_sort]"></td>
                                    <!--<td>
                                        <input type="radio" value="1" name="append[{$i}][is_show]" <if condition="$svo['is_show'] eq 1" >checked</if>>显示
                                        <input type="radio" value="0" name="append[{$i}][is_show]" <if condition="$svo['is_show'] eq 0" >checked</if>>隐藏
                                    </td>-->
                                    <td><span class="btn btn-xs btn-primary delTr">删除</span></td>
                                </tr>
                            </volist>
                        </table>
                    </div>
                </div>
                <div class="row text-center">
                    <a href="{:U('form_step4' ,array('id'=>I('id')))}" class="btn btn-info">上一步</a>
                    <input type="submit" class="btn btn-warning" value="保存 进入下一步"/>
                    <a class="btn btn-primary" href="{:U('form_step6',array('id'=>I('id')))}">跳过</a>
                </div>
            </form>
        </div>
    </div>
</block>
<block name="js">
    <script src="__STATIC__/layui/layui.all.js"></script>
    <script src="__STATIC__/layui/layui.js"></script>
    <script src="__STATIC__/Dealer/js/line.js"></script>
</block>

